package vip.xiaonuo.modular.remoteapi.card;

public interface RemoteCardConstant {

    // 返回状态码
    public static class ResponseCode {

        public static String SUCCESS = "0"; //请求已成功处理
        public static String PROTOCOL_VERSION_MISMATC = "1";//协议版本不匹配
        public static String SERVICE_NOT_FOUND = "2";//没有请求对应的服务
        public static String ILLEGAL = "3";//请求数据包包含不合法字段
        public static String CARD_NOT_EXISTS = "4";//卡片不存在
        public static String CARD_ERROR = "5";//卡号错误
        public static String ENCRYPTION_OR_DECRYPTION_FAILED = "6";//加/解密失败

    }


    // 命令
    public static class RequestCmd {

        public static String CONTROL_BUZZER = "control buzzer"; //蜂鸣器控制
        public static String CARD_ENCRYPT = "card encrypt"; //卡片加密
        public static String KEEP_CARD_ENCRYPT = "keep card encrypt";//设置连续批量加密和退出
        public static String CARD_DECRYPT = "card decrypt";//卡片解密
        public static String REQUEST_CARD = "request card";//获取卡片号码

        public static String SET_FIRE = "set fire";//消防

    }

    public static class CallBackCmd {

        public static final String HEART_BEAT = "heart beat";
        public static final String CARD_REPORT = "card report";
        public static final String QRCODE_REPORT = "qrcode report"; //设备发送二维码数据
        public static final String UPDATE_SYSTEM_TIME = "update system time";//修改系统事件
        public static final String REQUEST_DEVICE_PARAMS = "request device params";//获取系统参数
    }

    public static class DeviceType {

        public static final String CARD = "6";
    }

    public static class CardType {

        public static final Integer IC = 1;
        public static final Integer CPU = 2;

    }

    public static class CardStatus {

        public static final String END = "1";
        public static final String BEGIN = "2";
        public static final String REPEAT = "3";

    }
}
